package com.jar.exercise.设计模式.单例.静态内部类;

/**
 * @author 松鼠
 * @className Singleton
 * @description TODO
 * @date 2019-11-08 13:51
 */
public class Singleton {
	private Singleton() {
	}

	private static class SingletonIntence {
		private static final Singleton INSTANCE = new Singleton();
	}

	public static synchronized Singleton getInstance() {
		return SingletonIntence.INSTANCE;
	}
}
